<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
<script type="text/javascript">


function fn_check(){
	if($("#b_delivery").val() == ""){
		alert("운송회사를 입력해주세요");
		$("#b_delivery").focus();
		return false;
	}
	if($("#b_deliveryno").val() == ""){
		alert("운송번호를 입력해주세요");
		$("#b_delivery").focus();
		return false;
	}
	
	$("#b_way").val("배송완료");
	
}


</script>

<form action="adminWayDetail.do" method="post" onsubmit="return fn_check()">
<input type="hidden" name="b_code" value="${b_code }"/>
<input type="hidden" id="b_way" name="b_way" value=""/>

<table align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#a0a0a0" width="1000">

	
	<table id="output" style="text-align:center" align="center" width="750" border="0" cellpadding="0" cellspacing="0">
		
		<tr bgcolor="#6dfff2" height="40">
			<td>주문번호</td>
			<td>주문코드</td>
			<td>구매자</td>
			<td width="150">주소</td>
			<td>전화번호</td>
			<td>상품분류</td>
			<td>상품명</td>
			<td>상품수량</td>
			<td>배송상태</td>
		</tr>
		<c:forEach var="list" items="${wayDetailList }">
		<tr height="40">
			<td>${list.b_orderno }</td>
			<td> ${list.b_code }</td>
			<td>${list.memberCommand.m_name }</td>
			<td width="150">${list.memberCommand.m_address }</td>
			<td>${list.memberCommand.m_phone }</td>
			<td>${list.itemCommand.i_category }</td>
			<td>${list.itemCommand.i_name }</td>
			<td>${list.b_ea	 }</td>
			<td>${list.b_way }</td>
			
		</tr>
		</c:forEach>
		
	</table>
	<br/><br/><br/>
<div align="center">
	운송회사 : <input type="text" id="b_delivery" name="b_delivery"/>&nbsp;&nbsp;&nbsp;&nbsp;
	운송번호 : <input type="text" id="b_deliveryno" name="b_deliveryno"/>&nbsp;&nbsp;
	<input type="submit" value="배송완료"/>
</div>
</table>
</form>